//
//  UIView+borderView.h
//  ibgs_patients
//
//  Created by xiao.zhao@lachesis-mh.com on 15/12/29.
//  Copyright © 2015年 xiao.zhao@lachesis-mh.com. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_OPTIONS(NSInteger, LXBorderDirection) {
    LXBorderNone = 0,
    LXBorderTop = 1 << 0,
    LXBorderBottom = 1 << 1,
    LXBorderLeft = 1 << 2,
    LXBorderRight = 1 << 3,
    LXBorderAll = LXBorderTop | LXBorderLeft | LXBorderRight | LXBorderBottom
};

@interface UIView (borderView)

@property (nonatomic, assign) CGFloat borderWidth;
@property (nonatomic, copy) UIColor *borderColor;
@property (nonatomic, assign) LXBorderDirection borderDirection;

-(void)borderWithWidth:(CGFloat)width color:(UIColor *)color direction:(LXBorderDirection)direction;
-(void)borderWithWidth:(CGFloat)width direction:(LXBorderDirection)direction;

@end
